<?php

/* @var $this yii\web\View */
/* @var $form yii\bootstrap\ActiveForm */
/* @var $model \common\models\LoginForm */

use yii\helpers\Html;
use yii\bootstrap\ActiveForm;

$this->title = '用户登录';
$this->params['breadcrumbs'][] = $this->title;
?>


<!DOCTYPE html>
<html>
	<head>
		<title>蘑菇街--登录</title>
		<meta charset="utf-8">
		<link rel="icon" href="public/Images/favicon32.ico" type="image/x-icon" />
        <link rel="stylesheet" href="public/Css/login.css">
		<script src='public/Js/jquery-1.7.2.min.js'></script>
<style>
#loginform-username{
	border: 1px solid #cfcfcf;
    color: #999;
    font-size: 11px;
    height: 26px;
    outline: medium none;
    padding-left: 3px;
    width: 228px;
}
#loginform-password{
	border: 1px solid #cfcfcf;
    color: #999;
    font-size: 11px;
    height: 26px;
    margin-left:12px;
    outline: medium none;
    padding-left: 3px;
    width: 228px;
}
.btn-primary{
	background: rgb(244,122,19) none repeat scroll 0 0;
    border: 0px none;
    border-radius: 2px;
    color: #fff;
    cursor: pointer;
    height: 30px;
    outline: medium none;
    width: 283px;
}
.form-list li{
	margin:15px;
}
</style>
	</head>
	<body>
		<div id="d_content_body">
        	<!--LOGO-->
			<div class="d_logo">
            	<a href="{:U('Index/index')}" title="yiishop"></a>
            </div>
            <div class="d_logocon">
            	<div class="d_lg_banner">
                	<a href="{:U('Index/index')}" title="yiishop"><img src="public/Images/d_login.jpg" ></a>
                </div>
                <div class="d_lg_left">
                	<div  class="d_lg_tab">
                    	<div class="d_lg_title d_active"><a href="">用户登录</a></div>
                        
                    </div>
                    <div class="clear"></div>
                    <!--右边登录-->
                    <div class="d_lg_form">
                    
                    	
                        
                        <div class="site-login">

    <div class="row">
        <div class="col-lg-5"  >
            <?php $form = ActiveForm::begin(['id' => 'login-form']); ?>
			<ul class="form-list">
                <li><?= $form->field($model, 'username') ?></li>

                <li><?= $form->field($model, 'password')->passwordInput() ?></li>

                <li><?= $form->field($model, 'rememberMe')->checkbox() ?>
                	<div style="color:#999;margin:1em 0">
                     <?= Html::a('忘记密码?', ['site/request-password-reset']) ?>.
                	</div>
				</li>
				<li>
                <div class="form-group">
                    <?= Html::submitButton('登录', 
                    ['class' => 'btn btn-primary',
                     'name' => 'login-button',
					]) ?>
                </div>
                </li>
			</ul>
            <?php ActiveForm::end(); ?>
        </div>
    </div>
</div>
    
                        <div class="d_lg_reg"><a href="/shopping/frontend/web/index.php?r=site%2Fsignup">新用户注册</a></div>
                        <div class="d_ot_login">
                        	<span>你也可以用一下方式登录：</span>
                            <div class="d_ot_btn">
                            	<a href=""><img src="public/Images/d_qq.png"></a>
                                <a href=""><img src="public/Images/d_weixin.png"></a>
                                <a href=""><img src="public/Images/d_xl.png"></a>
                                <a href=""><img src="public/Images/d_weibo.png"></a>
                                <a href=""><img src="public/Images/d_ren.png"></a>
                                <a href=""><img src="public/Images/d_tong.png"></a>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
		</div>
        <!--页面底部-->
        <div class="d_footer">
        	<div class="d_footer_con">
            	<div class="d_code">
                	<h3>蘑菇街移动客户端</h3>
                    <a href="" target="_blank"></a>
                </div>
            	<ul class="d_link_list">
                	<li>
                    	<h3>新手帮助</h3>
                        <a href="" target="_blank">如何购买</a>
                        <a href="" target="_blank">支付教程</a>
                        <a href="" target="_blank">优惠券使用</a>
                        <a href="" target="_blank">常见问题</a>
                    </li>
                    <li>
                    	<h3>权益保障</h3>
                        <p>全国包邮</p>
                        <p>7天无理由退货</p>
                        <p>退货运费补贴</p>
                        <p>72小时发货</p>
                    </li>
                    <li>
                    	<h3>商家服务</h3>
                        <a href="" target="_blank">免费开店</a>
                        <a href="" target="_blank">商家入驻</a>
                        <a href="" target="_blank">管理后台</a>
                    </li>
                </ul>
                <div class="clear"></div>
                <p class="d_copyright">©Copyright 2010-2015 蘑菇街 Mogujie.com (增值电信业务经营许可证：浙B2-20110349)</p>
            </div>
        </div>
	</body>
	<script>
        $(function(){
            $("input[name=sub]").click(function(){
                if($(':text').val() =='' || $(':password').val() ==''){
                    return false;    
                }
            });
        });
	</script>
</html>